/**
 * Copyright [2020] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.callcenter.schema;

import com.hyts.callcenter.base.CallCenterRequest;
import com.hyts.callcenter.base.CallCenterResponse;
import com.hyts.callcenter.model.bo.TaskModel;

import java.util.List;

/**
 * @author libo
 * 呼叫中心业务任务的设计接口定义
 */
public interface CallTaskSchemaApi {

    /**
     * 启动任务操作控制机制
     * @param callCenterRequest
     * @return
     */
    CallCenterResponse startTask(CallCenterRequest<Long> callCenterRequest);


    /**
     * 启动任务操作控制机制（启动多个任务操作控制）
     * @param callCenterRequest
     * @return
     */
    CallCenterResponse startTasks(CallCenterRequest<List<Long>> callCenterRequest);


    /**
     * 保存任务信息控制s
     * @param taskModelCallCenterRequest
     * @return
     */
    CallCenterResponse saveTask(CallCenterRequest<TaskModel> taskModelCallCenterRequest);


    /**
     * 删除任务数据模型
     * @param taskModelCallCenterRequest
     * @return
     */
    CallCenterResponse removeTask(CallCenterRequest<Long> taskModelCallCenterRequest);


    /**
     * 检验检查AI数量的阈值上限
     * @param taskModelCallCenterRequest
     * @return
     */
    CallCenterResponse checkTaskAiLimited(CallCenterRequest<Long> taskModelCallCenterRequest);

    /**
     * 获取该租户下的AI机器人数量
     * @param tenantId
     * @return
     */
    CallCenterResponse getTenantHavingAiNum(CallCenterRequest<Long> tenantId);


    /**
     * 停止任务
     * @param callCenterRequest
     * @return
     */
    CallCenterResponse stopTask(CallCenterRequest<Long> callCenterRequest);


}
